package com.hopedove.workshop.ui

import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.hopedove.base.BaseActivity
import com.hopedove.workshop.R
import com.hopedove.workshop.databinding.WorkshopRunningHomeActivityBinding
import com.hopedove.workshop.viewmodel.WorkshopRunningSituationViewModel
import org.koin.androidx.viewmodel.ext.android.viewModel

/***
 *  运转情况首页
 *
 *  功能选择 -  录入，查询
 */
class RunningSituationHomeActivity : BaseActivity() {

    private lateinit var binding: WorkshopRunningHomeActivityBinding
    private val viewModel: WorkshopRunningSituationViewModel by viewModel()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.workshop_running_home_activity)
        binding.vm = viewModel
        observeNavigation(viewModel.navigation)
    }

}